import request from '@/utils/request'

export function getList(pageNum,searchTeacherVo) {
  return request({
    url: `/teacher/page/${pageNum}`,
    method: 'post',
    data:searchTeacherVo
  })
}

export function save(teacherVo) {
    return request({
      url: `/teacher/save`,
      method: 'post',
      data:teacherVo
    })
  }
export function deleteById(id) {
  return request({
    url: `/teacher/${id}`,
    method: 'delete',
  })
}
  
export function getById(id) {
  return request({
    url: `/teacher/${id}`,
    method: 'get',
  })
}
  
